<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class UserModel extends Model
{
    use HasFactory;
    protected $table='user_copy';
    protected $primaryKey='user_id';
    //查询对应短视频的用户信息
    function userInfo(){
      return $this->belongsTo(NewsVideoModel::class,'user_num','user_id');
     }

}
